<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:fragment xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">


	<p:panel header="Opções da Enquete" footer="Opções da Enquete">
		<h:panelGrid id="enquete_opcoes" columns="5" cellpadding="0">
			<h:outputLabel for="opcoes" value="Descrição:" />
			<p:inputText value="#{controllerCharts.enqueteOpcoes.descricao}"
				id="opcoes" maxlength="39" size="40" required="true"
				requiredMessage="Campo obrigatorio" />
			<p:watermark for="opcoes" value="Digite aqui a opcao!" />
			<p:message for="opcoes" />

			<p:commandButton value="add"
				action="#{controllerCharts.adicionaOpcoes()}" />




		</h:panelGrid>

		<p:dataTable var="car" value="">
			<p:column headerText="Model">
				<h:outputText value="" />
			</p:column>
		</p:dataTable>


	</p:panel>


</ui:fragment>